# $Id: PKGBUILD 64772 2012-02-18 04:26:52Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: scippio <scippio@berounet.cz>
pkgname=ois
pkgver=1.3
_oisver=${pkgver/./-}
pkgrel=2
pkgdesc="Object Oriented Input System"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/wgois"
license=('custom:zlib/libpng')
makedepends=('autoconf' 'automake' 'libtool' 'gcc' 'libxaw')
source=("http://downloads.sourceforge.net/project/wgois/Source%20Release/${pkgver}/ois_v${_oisver}.tar.gz")
md5sums=('9697fead17eac6025151cd2e1fca1518')

build() {
  cd ${srcdir}/${pkgname}-v${_oisver}
  chmod +x bootstrap
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${pkgname}-v${_oisver}
  make DESTDIR=${pkgdir} install
}
